<?=form_open(uri_string());?>
<table class="form">
    <tr>
        <td class="label required"><?=lang('adv_position');?></td>
        <td><select name="kind" id="kind" class="w200">
            <? 
				$position = $this->config->item('pos_banner') ;
				for($i=0;$i<count($position);$i++) { 
        	?>
                <option value="<?=$i?>"><?=$position[$i]?></option>
                <? } ?>
            </select></td>
    </tr>
    <script language="javascript">mkselected('kind', '<?=$rs->kind?>');</script>
    <tr>
        <td class="w150 label required"><?=lang('image');?></td>
        <td>
            <a class="lib_img" href="javascript:void(0);" onClick="imgLib.openLib({width:300,height:250,return_tag:'lb_image',action:'imgcrop'});" title="<?=lang('add_file');?>"></a>
            <div class="lb_image">
                <input type="hidden" name="lb_image" class="w350" value="" id="lb_image">
                <a href="javascript:void(0);" onClick="imgLib.openLib({dir_img:'banner/<?=$rs->lb_image;?>',width:300,height:250,method:'imgcrop',return_tag:'lb_image',action:'imgcrop'});">
                    <img src="<?=base_url_site().'uploads/banner/'.$rs->lb_image?>" width="100px"/>
                </a>
            </div>
        </td>
    </tr>
    <tr>
        <td class="w150 label"><?=lang('name');?></td>
        <td><input type="text" name="lb_title" id="lb_title" class="w300"  value="<?=$rs->lb_title;?>"></td>
    </tr>
    <tr>
        <td class="w150  label"><?=lang('link');?></td>
        <td><input type="text" name="lb_url" id="lb_url" class="w300" value="<?=$rs->lb_url;?>"></td>
    </tr>
    <tr>
        <td class="w150 label"><?=lang('order');?></td>
        <td><input type="text" name="nb_order" id="nb_order" class="w100" value="<?=$rs->nb_order;?>"></td>
    </tr>
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td><input type="checkbox" name="bl_active" id="bl_active"  value="1" <?=($rs->bl_active==1)? 'checked="checked"' : ''?>></td>
    </tr>
    <tr>
        <td class="label"></td>
        <td class="footer"><input type="submit" name="bt_submit" class="capnhat"></td>
    </tr>
</table>
<?=form_close();?>
